package User;

import Book.BookList;
import Operation.IOPeration;

public  abstract class User {
    protected String name;

    //此时数组没有分配对象
    protected IOPeration[] arrary;

    public User(String name){
        this.name = name;
    }

    public abstract int menu();

    public void doWork(int choice, BookList bookList){
        IOPeration ioPeration = arrary[choice];
        ioPeration.work(bookList);
    }
}
